package com.hncc.dms.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 药品模版管理对象 dms_drug_model
 * 
 * @author ruoyi
 * @date 2020-08-25
 */
@ApiModel(value = "药品模版管理实体")
public class DmsDrugModel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模版编号 */
    @ApiModelProperty(value = "模版编号",required = false)
    @Excel(name = "模版编号")
    private Long id;

    /** 模版状态 */
    @ApiModelProperty(value = "模版状态",required = false)
    private Integer status;

    /** 模版名字 */
    @ApiModelProperty(value = "模版名字",required = false)
    @Excel(name = "模版名字")
    private String name;

    /** 模版范围 */
    @ApiModelProperty(value = "模版范围",required = false)
    @Excel(name = "模版范围")
    private Integer scope;

    /** 药品模版所属ID */
    @ApiModelProperty(value = "药品模版所属ID",required = false)
    private Long ownId;

    /** 模版简介 */
    @ApiModelProperty(value = "模版简介",required = false)
    @Excel(name = "模版简介")
    private String aim;

    /** 模版编码 */
    @ApiModelProperty(value = "模版编码",required = false)
    @Excel(name = "模版编码")
    private String code;

    /** 模板类型 */
    @ApiModelProperty(value = "模板类型",required = false)
    @Excel(name = "模板类型")
    private Integer type;

    /** 草药：付数 */
    @ApiModelProperty(value = "草药：付数",required = false)
    private Long pairNum;

    /** 草药：频次 */
    @ApiModelProperty(value = "草药：频次",required = false)
    private Integer frequency;

    /** 草药：治法 */
    @ApiModelProperty(value = "草药：治法",required = false)
    private String therapy;

    /** 草药：治法细节 */
    @ApiModelProperty(value = "草药：治法细节",required = false)
    private String therapyDetails;

    /** 草药：医嘱 */
    @ApiModelProperty(value = "草药：医嘱",required = false)
    private String medicalAdvice;

    /** 药品实体集合 */
    private List<DmsDrug> dmsDrugs;

    /** 成药药品模板项实体集合 */
    private List<DmsMedicineModelItem> dmsMedicineModelItems;

    /** 草药模板项实体集合 */
    private List<DmsHerbalModelItem> dmsHerbalModelItems;

    public List<DmsHerbalModelItem> getDmsHerbalModelItems() {
        return dmsHerbalModelItems;
    }

    public void setDmsHerbalModelItems(List<DmsHerbalModelItem> dmsHerbalModelItems) {
        this.dmsHerbalModelItems = dmsHerbalModelItems;
    }

    public List<DmsDrug> getDmsDrugs() {
        return dmsDrugs;
    }

    public void setDmsDrugs(List<DmsDrug> dmsDrugs) {
        this.dmsDrugs = dmsDrugs;
    }

    public List<DmsMedicineModelItem> getDmsMedicineModelItems() {
        return dmsMedicineModelItems;
    }

    public void setDmsMedicineModelItems(List<DmsMedicineModelItem> dmsMedicineModelItems) {
        this.dmsMedicineModelItems = dmsMedicineModelItems;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setScope(Integer scope) 
    {
        this.scope = scope;
    }

    public Integer getScope() 
    {
        return scope;
    }
    public void setOwnId(Long ownId) 
    {
        this.ownId = ownId;
    }

    public Long getOwnId() 
    {
        return ownId;
    }
    public void setAim(String aim) 
    {
        this.aim = aim;
    }

    public String getAim() 
    {
        return aim;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setPairNum(Long pairNum) 
    {
        this.pairNum = pairNum;
    }

    public Long getPairNum() 
    {
        return pairNum;
    }
    public void setFrequency(Integer frequency) 
    {
        this.frequency = frequency;
    }

    public Integer getFrequency() 
    {
        return frequency;
    }
    public void setTherapy(String therapy) 
    {
        this.therapy = therapy;
    }

    public String getTherapy() 
    {
        return therapy;
    }
    public void setTherapyDetails(String therapyDetails) 
    {
        this.therapyDetails = therapyDetails;
    }

    public String getTherapyDetails() 
    {
        return therapyDetails;
    }
    public void setMedicalAdvice(String medicalAdvice) 
    {
        this.medicalAdvice = medicalAdvice;
    }

    public String getMedicalAdvice() 
    {
        return medicalAdvice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("status", getStatus())
            .append("name", getName())
            .append("scope", getScope())
            .append("ownId", getOwnId())
            .append("aim", getAim())
            .append("createTime", getCreateTime())
            .append("code", getCode())
            .append("type", getType())
            .append("pairNum", getPairNum())
            .append("frequency", getFrequency())
            .append("therapy", getTherapy())
            .append("therapyDetails", getTherapyDetails())
            .append("medicalAdvice", getMedicalAdvice())
            .toString();
    }
}
